package com.taptech.doufu.ui.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.taptech.doufu.R
import com.taptech.doufu.model.novel.bean.NovelBookListBean
import com.taptech.doufu.ui.activity.weex.SimpleWeexActivity
import com.taptech.doufu.util.GlideUtil
import kotlinx.android.synthetic.main.adapter_marquee.view.*
import kotlinx.android.synthetic.main.adapter_novel_book_list.view.*

class MarqueeAdapter(context:Context):BaseRecyclerAdappter<String,MarqueeAdapter.ViewHolder>(context) {


    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
        val view = LayoutInflater.from(mContext).inflate(R.layout.adapter_marquee,null)
        return ViewHolder(view)
    }


    override fun onBindViewHolder(holder: ViewHolder, position: Int) {
        super.onBindViewHolder(holder, position)
        val item = dataList[position]
        holder.itemView.tvContent.text = item
    }

    class ViewHolder(view:View): RecyclerView.ViewHolder(view)
}